To get rid of rodents in the attic, first, find and seal entry points. Set traps or use rodent baits to catch them. Remove any food sources and nesting materials. Keeping the attic clean and clutter-free can help prevent future infestations. For severe problems, professional pest control may be necessary.