Provided is a dishwasher having an improved structure capable of selecting whether to spray wash water. The dishwasher includes a washing tub, a basket provided in the washing tub to accommodate dishware, a duct provided in the washing tub to be supplied with wash water, a sub-duct mounted on the basket to guide the wash water, a connection pipe connected to the sub-duct, and a spray nozzle coupled to the connection pipe to be rotatable from a first position where the connection pipe is open and a second position where the connection pipe is closed.