Wombat

Wombats are the only species in the world that defecates in the form of cubes.

An excerpt from the article 14 facts about Wombat
Many theories have arisen as to what purpose this serves. Some claim that this allows wombats to mark terrain more efficiently - the cubic feces will not roll off a sloping stone. Another theory is that this is because of a little water in their diet, as they live in arid conditions. This theory is confirmed by the fact that wombats living in captivity in zoos, where they have access to more water, excrete more spherical feces. However, scientists' research has shown that wombats have a specific large intestine, especially the first section of the intestine, which has a flattened upper and lower wall, forming feces into a cube. The second, final section of the intestine remains smooth and maintains the shape formed earlier.