Santa Margarita is a unincorporated community located in San Luis Obispo County, California. It was founded in 1889 near Cuesta Peak and San Luis Obispo along State Route 58.