N4
てくれてありがとう
Thank you for ~ ing
いつもゴキブリを捕まえてくれてありがとう。
Thank you for always catching the cockroaches.
Explanation
「〜てくれてありがとう」 means 'thank you for …ing', and it names exactly what you are thankful for: 「空港まで迎えに来てくれてありがとう」 (Thank you for coming to pick me up at the airport). Use it with friends and younger people; the polite form is 「〜てくれてありがとうございます」.
Mixed up with
To an elder or boss do not use 「てくれて」. Say 「〜てくださってありがとうございます」 or 「〜ていただき、ありがとうございます」.
A bare 「ありがとう」 is general thanks. Adding 「〜てくれて」 points to the specific kind act, which feels more sincere.