The nuclear periphery (NP) plays a substantial role in chromatin organization. Heterochromatin at the NP is interspersed with active chromatin surrounding nuclear pore complexes (NPCs); however, details of the peripheral chromatin organization are missing. To discern the distribution of epigenetic marks at the NP of HeLa nuclei, we used structured illumination microscopy combined with a new MATLAB software tool for automatic NP and NPC detection, measurements of fluorescent intensity and statistical analysis of measured data. Our results show that marks for both active and nonactive chromatin associate differentially with NPCs. The incidence of heterochromatin marks, such as H3K27me2 and H3K9me2, was significantly lower around NPCs. In contrast, the presence of marks of active chromatin such as H3K4me2 was only decreased very slightly around the NPCs or not at all (H3K9Ac). Interestingly, the histone demethylases LSD1 (also known as KDM1A) and KDM2A were enriched within the NPCs, suggesting that there was a chromatinmodifying mechanism at the NPCs. Inhibition of transcription resulted in a larger drop in the distribution of H1, H3K9me2 and H3K23me2, which implies that transcription has a role in the organization of heterochromatin at the NP.