Count of Linhares (in Portuguese Conde de Linhares) was a Portuguese title of nobility created by a royal decree of king John III of Portugal dated from May 13th, 1532, and granted to Dom António de Noronha, 2nd son of Pedro de Menezes, 1st Marquis of Vila Real.
This family went to live in Spain and remained faithful to the Spanish Habsburgs even after the Portuguese revolution of 1 December 1640, so the new Dynasty of Braganza no longer recognized them as Counts of Linhares.
Later, in the 19th Century, Queen Maria I of Portugal, granted again the title of count of Linhares (second creation), by a royal decree dated from December 17th, 1808, to Rodrigo de Sousa Coutinho, 1st Count of Linhares Governor of Portuguese Angola, Portuguese ambassador in Turin and a remarkable statesman.
After 1640, to reward Fernando de Noronha, 5th Count of Linhares, fidelity to the Spanish Habsburgs, King Philip IV of Spain upgraded the title of Count to Duke of Linhares. However, as he was no longer King of Portugal, this title was never recognized in Portugal, but it still exists in Spain as Duke of Liñares once, in 1667, King Charles II of Spain changed it to the Spanish spelling.
The title of Duke of Liñares was later inherited by the Spanish Fernando de Lancastre y Noroña, Marquis of Porto Seguro, Duke of Abrantes and Duke of Liñares (all these three titles were granted by King Philip IV after 1640, to reward the fidelity of some Portuguese aristocrats to the Habsburgs and are not valid in Portugal).