Magnetite(Fe3O4) has a spinel structure with two types of Fe sites: octahedral and tetrahedral
This structure is called a spinel, with Fe2+ ion in tetrahedral coordination and Fe3+ ions in octahedral sites. The coupling between atoms from these two lattices are superexchange interactions, which result in an antiparallel alignment of spins. However, because the magnetic moments of the two lattices are not equal, their addition results in a net magnetic moment, even though they are of opposition alignment. This is called ferrimagnetism,