A patio cover is attached to a home and provides shade and protection, while a pergola is a free-standing structure used to designate a space for entertainment. Patio covers have either a solid or lattice roof, while pergolas are covered with crossbeams and a lattice roof. Both serve different purposes, with patio covers offering weather protection and pergolas serving as a decorative space.