A self-cleaning sprinkler is disclosed, generally comprised of an upper and lower housing, which encase a nozzle and a diaphragm. The diaphragm moves in an upward and downward position relative to the nozzle, which allows water located within a chamber to be expelled out of an exit aperture of the nozzle. A needle is secured within the diaphragm to correspondingly move in an upward and downward position, such that once in a closed position, the needle will penetrate the exit aperture of the nozzle in order to clean any debris that may have accumulated therein. The diaphragm moves in from a closed position to an open position depending on the incoming water pressure.