To prevent mice in your yard, keep your landscaping trimmed and free of debris. Remove any piles of leaves, brush, or rock that could provide shelter. Seal any gaps or holes in your home’s foundation, and store trash and compost in airtight containers. Finally, clean up any spilled food and garbage immediately.