 As a result, Costa Rica's culture has been greatly influenced by the culture of Spain.During this period, Costa Rica remained sparsely developed and impoverished.Following the Mexican War of Independence (1810–1821), Costa Rica became part of the independent Mexican Empire in 1821.