The Deuxième Bureau de l'État-major général (English: Second Bureau of the General Staff) was France's external military intelligence agency from 1871 to 1940. It was dissolved together with the Third Republic upon the armistice with Germany. However the term "Deuxième Bureau", like "MI5" or "SMERSH", outlived the original organization as a general label for the country's intelligence service.
French military intelligence was composed of two separate bureaus prior to World War II. The Premier Bureau was charged with informing the high command about the state of French, allied and friendly troops, while the Deuxième Bureau developed intelligence concerning enemy troops. The Deuxième Bureau was celebrated for its cryptanalytical work, but it was criticized for its involvement in the Dreyfus Affair and its consistent overestimation of German military formations prior to World War II.
Its final director was Colonel Louis Rivet.
On June 8, 1871, the French Ministry of War authorized the creation of a service charged with performing "research on enemy plans and operations".
The Deuxième Bureau is the military secret service of Morocco. It is in charge of the military surveillance of foreign armies and of foreign land borders. It derives its name from the Deuxième Bureau of the French colonial empire, of which Morocco was a part.