 McNamara grew increasingly skeptical of the efficacy of committing US soldiers to Vietnam.In 1968, he resigned as Secretary of Defense to become President of the World Bank.He remains the longest serving Secretary of Defense, having remained in office over seven years.