But few agreed with him, and the political turmoil caused by the foreign threat led not to a war against the Americans but to a coup against the shoguns. After a short civil war in 1868, the Tokugawas were replaced by a very different sort of aristocratic elite, who decided that the way to repel Western imperialism was to embrace wholesale modernization.