A rat has no breeding season, so it can mate anytime. If you put a male and female rat in the same cage, they will most likely mate. They could probably breed anywhere.
They breed in stagnant water such as swamps. Also bird baths, unused swimming pools or any other body of water that is left undisturbed for a long time.