The present invention relates to steam generator and a washing machine having the same which can minimize remained water in the steam generator, and can prevent the water stored in the steam generator from leaking and the water in the steam generator from being supplied to the clothes together with the steam due to a spray pressure of the steam.