Within days of Belgian independence, an "Administration for Public Safety" ("Administration de la Sûreté Publique") was installed to protect the fledgling state against attempts by the Dutch king William I to suppress the Belgian rebels. The Public Safety would have two directorates, one being the alien police and the other the security service. As a security service, Public Safety had to protect the Belgian state against Dutch spies and republicans. Intelligence gathering happened only internally: spying abroad was considered a potential breach of the country's neutrality which was imposed by the other European states as a condition for Belgian independence. The service did initiate contacts with foreign intelligence services almost from the outset, building up tight relationships with other European secret services. After peace with the Netherlands, the service focused on subversive elements, successfully thwarting an attempted republican coup d'état instigated by Karl Marx in 1848. Other successes include the formation of an impromptu foreign intelligence service during the Franco-Prussian War of 1870 to support the Belgian Army, which was standing guard for a potential invasion of Belgium.