since 1621 existed in spain the secretariat of the universal dispatch, a unique government department where the sovereign delegated its power. with the new dynasty, it was necessary to divide it into several secretariats of state that took care of the diverse administrative subjects: by means of the decree of 11 of july 1705, philip v created a «secretariat of state for war and treasury» and another one for «everything else».