All accessory buildings such as garages or sheds must be built in the rear or side yard.
If the garage is structurally attached to the property's principal building (your house), it is subject to the principal building's setback regulations and buildings codes.