The answer to 'how to get rid of rat' is to use a combination of prevention, trapping, and professional extermination. Rats can enter homes through small openings and are attracted to food sources, nesting materials, and shelter. Common signs of a rat problem include droppings, gnaw marks, and noises in the walls or attic.
For DIY solutions, you can seal entry points, remove food sources, set humane traps, and use repellents. However, if the infestation is severe or you are unable to effectively remove the rats, it's best to call a professional pest control technician. They have the expertise and tools to safely and effectively eliminate the rats and prevent future infestations.