santa barbara , city, seat (1850) of santa barbara county, southwestern california , u.s. it lies along the pacific coast at the base of the santa ynez mountains, facing the santa barbara channel. it is situated 97 miles (156 km) northwest of los angeles . because it is protected to the south by the santa barbara islands and to the north by the mountains, santa barbara has a mild climate throughout the year.it was named by the spanish explorer sebastián vizcaíno in 1602 for the patron saint of mariners. a presidio (military post) was established there in 1782 and the mission of santa barbara in 1786; the mission, which is the western headquarters of the franciscan order , has been in continuous use since its founding, and the presidio is now maintained as a state historic park. a port and agricultural market subsequently developed. john charles frémont raised the u.s. flag at the presidio in 1846. following the arrival (1887) of the southern pacific railroad , santa barbara was promoted as a seaside resort and developed an economy based on tourism, the raising of citrus fruit and cattle, and the production of petroleum. after an earthquake in 1925, many buildings were restored in spanish colonial style, and the city's adobe character is preserved by law. santa barbara has developed as a generally affluent and picturesque community.