One of the most important factors in preventing your swimsuit from riding up is to choose the right swimsuit. If you are opting for a two-piece swimsuit, make sure that the bottoms fit snugly around your hips. Avoid swimsuits with string ties or bandeaus, as these are more likely to ride up.