What is an earnest money deposit? Why are you writing that check?
Simply put, earnest money is money you put out to show you're serious about making an offer. If your offer is accepted, it becomes part of your down payment. If your offer isn't accepted, it is returned to you.
This short video put out by loanDepot (a company I am not endorsing in any way, just sharing the information from) is a great, quick explanation to help you out!
Again, my sharing this video is not a suggestion to use this company, or an endorsement. When buying, do your research looking for a lender.
I do think the info in this video is very well stated and informative, however!