Acute viral hepatitis is the most common cause of jaundice in pregnancy.