Ureaplasma is not exactly preventable, but you should try abstaining from unprotected sexual intercourse. Ensure to maintain a healthy lifestyle and diet.