A royal consort is the spouse (wife or husband) of a monarch (king or queen).
The wife of a king is almost always called a queen, or queen consort. The husband of a ruling queen may be called a king consort or prince consort.