Do Filipinos have any relation with Spanish / Mexican people?

I've always wondered this because their last names always sound so Spanish to me.