Disclosed is a magnetic building block, including: a bearing body, magnetic bodies, and a retaining body, the bearing body including a sealing member and a bearing member which forms first cavities with the retaining body, the magnetic bodies being located in the first cavities and attracting adjacent external products, to form different shapes; the retaining body is in contact with the magnetic bodies to secure the same. The bearing body, the magnetic bodies, and the retaining body match for use, and the magnetic bodies are relatively fixed in an accommodation cavity through the retaining body and can be magnetically connected to the external products, such that when stacking multiple magnetic building block, different magnetic building blocks can be spliced in different surfaces and further be spliced in a suspension manner, thereby reducing a process of stacking multiple building blocks, providing convenience, and further realizing diversified splicing and meeting users' requirements.