You use this to say something good happened because of someone or something. It means 'thanks to' or 'because of' a good thing.
、に。
Thanks to my teacher, I was able to pass the JLPT N3.
、に。
Thanks to practicing every day, I was able to win the match.
、。
Thanks to the good weather, the laundry is drying well, isn't it?
、。
Thanks to you 'helping' me, I've actually ended up with more work, haven't I?
、。
Thanks to everyone's support, the project has been completed successfully.