Diego Fernández (fl. 1020 – c. 1046), also known as Diego Fernández de Oviedo, was a member of one of the most noble lineages of the Kingdom of León as the son of Fernando Flaínez and Elvira Peláez, daughter of count Pelayo Rodríguez. He was the second cousin of King Alfonso V since both shared the same great-grandfather, Count Fernando Bermúdez de Cea. Distinguished with the title of Count at an early age, Diego was the father of Jimena Díaz, wife of Rodrigo Díaz de Vivar El Cid.
Count Diego first married Elvira Ovéquiz, daughter of Count Oveco Sánchez and Countess Elo, who gave him two daughters:
His second wife, probably named Cristina, was a daughter of Fernando Gundemáriz and granddaughter of Gundemaro Pinióliz. The documented offspring of this marriage were: