Compostela is a municipality and its municipal seat are located in the state of Nayarit, western Mexico. The municipality covers an area of approximately 1,200 km² (462 sq mi) and, according to the 2020 national census conducted by the Instituto Nacional de Estadística y Geografía (INEGI), had a total population of around 60,000 inhabitants, with the town of Compostela accounting for roughly one‑third of that figure.
Geographically, the municipality lies in the coastal plain of the Pacific region of Nayarit, bordering the municipalities of Puerto Vallarta (Jalisco) to the north, San Blas to the south, and the Pacific Ocean to the west. The terrain includes low‑lying coastal zones, agricultural lands, and portions of the Sierra de Vallejo.
The local economy is primarily based on agriculture, cattle raising, and fishing. Key crops include beans, corn, and various fruits such as mangoes and papayas. In recent decades, tourism has grown modestly due to the municipality’s proximity to popular beach destinations like San Pancho (San Francisco) and the development of boutique hotels and eco‑tourism initiatives.
Historically, the area was inhabited by indigenous groups, notably the Cora and Huichol peoples, before Spanish colonization in the 16th century. The town was officially founded in the 19th century, receiving its name in honor of Santiago de Compostela in Spain, reflecting the common practice of using Spanish place names during that period. The municipality was formally established in 1918 as part of the administrative reorganization of Nayarit following the Mexican Revolution.
Transportation infrastructure includes Federal Highway 200, which connects Compostela with Puerto Vallarta to the north and the state capital, Tepic, to the east. A small regional airport in Puerto Vallarta provides the nearest air service.
Culturally, Compostela hosts annual festivals such as the Feria de la Primavera, featuring traditional music, dance, and regional cuisine. The municipality also maintains several public schools and a health clinic that serve the local population.