There is usually a connection between the dishwasher and the drain from the garbage disposal. Food left behind in the garbage disposal can clog that connection to the main drain and back water up into your sink. To prevent this, make sure that your disposal is free of food before running the dishwasher. Also make sure to run the garbage disposal with plenty of water before turning the dishwasher on.