Extramarital relationships can sometimes impact custody and visitation decisions. The court will consider the overall picture using the “best interest of the child” standard, which involves evaluating 10 different factors. These include the age, mental and physical condition of the parties, and their willingness to work together. While an affair may be taken into account, it’s not necessarily a barrier to obtaining custody. The final decision depends on the complete circumstances.