Blocked oil glands are the most common cause of styes.
But lack of sleep and being stressed out all the time, rubbing your eyes and even lack of water can trigger styes.
You can get rid of the stye by applying a warm compress to the stye or even massaging the stye which will help the stye go away.
Another home remedy that works to get rid of a stye is to take a warm tea bag and apply it over the stye.
The warm tea bag will work as a warm compress to get rid of the stye.