To discourage pigeons from roosting or nesting, it’s important to remove food sources, secure garbage containers, install bird deterrents like spikes or wire mesh on ledges and roofs, and seal off any access points to potential nesting sites. Maintaining cleanliness and promptly addressing any potential attractants can also help deter pigeons.