Marshland vegetation of the class Phragmito-Magnocaricetea in the Krapina river valley was investigated during 2006 and 2007, and some sporadic investigations were made earlier. Phytosociological studies were carried out in accordance with the standard Braun-Blanquet methodology. As a result of the field work, and a small amount of data from the literature, 120 relevés were collected and 18 communities were established. For the purposes of comparison, the relevés were also classified using numerical methods. The clusters obtained mostly correspond to specific associations, but do not confirm the division into traditional vegetation alliances and orders. In the analysis of the ecological factors it is established that separation of the relevés is influenced by nutrient content, soil reaction, soil moisture, depth of water, and type of management. Analysis of the plant life forms shows, in all marshland communities, a prevalence of hemicryptophytes, geophytes and hydrophytes. The most widespread marshland communities of the investigated area are: Phalaridetum arundinaceae, Phragmitetum australis and Galio palustris-Caricetum ripariae. Furthermore, Carex randalpina community is recorded for the first time in Croatia. The most threatened marshland communities could be considered to be: Carex randalpina community, Caricetum vesicariae, Leersietum oryzoidis and Oenantho-Rorippetum. They are selected because of their very small surfaces in the investigated area and the small number of known localities within the territory of Croatia. The most invasive alien plant species in the Krapina river valley is Solidago gigantea. It spreads in potential habitats of marshland vegetation, and it is recorded in the species composition of many marshland communities. For the preservation of marshland vegetation, and especially threatened types, it is necessary to maintain the water regime of the habitats, to not remove natural plant cover due to spreading of neophytes, and to provide occasional mowing and burning.