Fungi are closer relatives of yours than of plants.
Fungi and animals together form a group called Opisthokonta. Their last common ancestor lived after the plant lineage had already split off. Fungi don't photosynthesize, they store energy as glycogen like you do, and they build cell walls from chitin, the same material as insect shells.
Useful: That's why fungal infections are hard to treat: what harms fungal cells often harms yours too.
Source: en.wikipedia.org