To flatter someone means to praise them excessively, often insincerely, in order to gain their favor or approval.