The total synthesis of (-)-huperzine A was accomplished in 23 steps from a commercially available anhydride. Our synthetic route features a facile construction of the bicyclo[3.3.1] skeleton equipped with proper functionalities to introduce the remaining substructures.