The primary role of an architect is to design and oversee the construction of buildings and other structures, ensuring that they are functional, aesthetically pleasing, and adhere to building codes and regulations.