Original: Founded in 1742, it became the provincial capital in 1840.
Simplified: San Fernando was founded in 1742, and became the provincial capital in 1840.