Obrigado vs obrigada

I’m very glad I came upon this question. I’ve been living in the Azores now for over two years and hadn’t gotten any clarification on this question until today. Much obliged! Obrigado!