in 1838, costa rica formally proclaimed itself an independent country. the local population had little allegiance to the federal government in guatemala. from colonial times to now, costa rica's reluctance to become politically tied with the rest of central america has been a major obstacle to efforts for greater regional integration.