A pergola has an open roof, with only beams overhead. A pavilion has a solid roof. Neither has walls, allowing for open airflow through the structure. The covered aspect of a pavilion will give you more protection from the sun and rain.