What country did Panama belong to before its independence?

History Trivia: What country did Panama belong to before its independence?