The only free and comprehensive online etymological dictionary of the Spanish language
majestad f. (Noun) "majesty"

From Late Latin maiestatem, accusative maiestas "authority." Derived from maior "greater" (see mayor) and -tas, a noun-forming suffix (see -dad).

Romance: Western Vulgar Latin: Portuguese majestade, French majesté