The movie was amongst his seven inspiring things in 2017.
"There's no denying that 2017 was a really tough year... but it also delivered some amazing moments of hope and progress. Here are some inspiring tweets that you may have missed," Gates tweeted on Tuesday.
Directed by Shree Narayan Singh, "Toilet: Ek Prem Katha" revolves around a man named Keshav, who falls in love with Jaya and gets married to her. However, she complains that there is no toilet in the house and he tries to pacify her with temporary arrangements.
"'Toilet: Ek Prem Katha' is our contribution towards ending a practice that affects a very large population of the world. We truly hope open defecation will be a thing of the past. To a brighter and better world. Say no to open defecation," she added.