Short answer
Japan’s warrior-domain system did not end in one event. The Meiji government, which took power after the Meiji Restoration of 1868, dismantled it over the following decade. It abolished the domains in 1871, converted samurai stipends into bonds in the mid-1870s, and banned the public carrying of swords in 1876. The main causes were concern about decentralized power, debt and stipend costs, and pressure from foreign powers.
Two centuries of peace and strain
During the Tokugawa period (1603–1867), a long peace meant many samurai worked as administrators rather than fighting. Merchants in the cities grew wealthier while many samurai were paid fixed rice stipends. Many domains struggled with debt and with paying their retainers. Over time, a rice-based system looked out of step with a growing money economy.
Pressure from outside
In 1853 Commodore Matthew Perry arrived with a United States naval squadron, and the treaties that followed in the 1850s opened ports and gave foreign powers special privileges. The shogunate’s handling of those treaties weakened its standing, and domains and reformers disagreed about what Japan should do next.
The Meiji Restoration and the domains
In 1868 imperial rule was restored, and a new government led by reformers from several domains took power. Many of these leaders saw the domains as a barrier to national authority, especially as ex-samurai revolts broke out in different parts of the country.
In August 1871 an imperial edict converted the domains into prefectures. The former daimyo lost their roles as domain rulers and were moved to Tokyo, where they received new titles and government income.
Ending samurai stipends and privileges
Samurai stipends were a large cost for the new government. The government took on domain debts and promised to pay samurai stipends, then moved toward converting those stipends into interest-bearing bonds. Sources give different years for this conversion, usually in the early to mid-1870s, and the 1876 measure is often treated as the decisive step.
Other changes ended the samurai’s place as the country’s warrior class. In 1873 the government introduced conscription, creating a national army. In 1876 it banned the public carrying of swords, a visible sign of samurai status, and the ban triggered armed revolts. The largest was the Satsuma Rebellion of 1877, which the new conscript army put down.
Caveats
Dates and details vary by source, and popular history websites often overstate figures. Numbers such as the share of the national budget taken by stipends should be checked against a scholarly source before you repeat them.
The samurai class did not vanish overnight. Many former samurai went into government, business and the military, and their social status faded over years rather than on a single date.
Bottom line
Japan’s feudal system ended through a series of government decisions after 1868, not one turning point. Central power, fiscal pressure and foreign pressure all played a part, and the most decisive steps came between 1871 and 1877.