Megakaryopoiesis primarily occurs in the bone marrow, a spongy tissue found in the hollow centers of certain bones. The bone marrow provides a specialized microenvironment that supports the proliferation and differentiation of hematopoietic stem cells (HSCs) into mature blood cells, including megakaryocytes.