Farming was established in Central Europe by the Linearbandkeramik culture (LBK), a well-investigated archaeological horizon, which emerged in the Carpathian Basin, in today's Hungary. However, the genetic background of the LBK genesis is yet unclear. Here we present 9 Y chromosomal and 84 mitochondrial DNA profiles from Mesolithic, Neolithic Starčevo and LBK sites (seventh/sixth millennia BC) from the Carpathian Basin and southeastern Europe. We detect genetic continuity of both maternal and paternal elements during the initial spread of agriculture, and confirm the substantial genetic impact of early southeastern European and Carpathian Basin farming cultures on Central European populations of the sixth-fourth millennia BC. Comprehensive Y chromosomal and mitochondrial DNA population genetic analyses demonstrate a clear affinity of the early farmers to the modern Near East and Caucasus, tracing the expansion from that region through southeastern Europe and the Carpathian Basin into Central Europe. However, our results also reveal contrasting patterns for male and female genetic diversity in the European Neolithic, suggesting a system of patrilineal descent and patrilocal residential rules among the early farmers.