The natural way cats do this is to mark it with urine — by putting their scent on a certain area, it makes the cat feel secure, especially if he feels out of place, nervous, or fearful.
There are scent attractants on the market that are supposed to attract a dog and make him want to eliminate in a certainarea of the yard, but I have not tried these products.