We evaluated the capacity of the Brucella sp. eryC gene as a diagnostic marker for brucellosis by quantitative real-time PCR. eryC gene encodes the enzyme d-erythrulose-1-phosphate dehydrogenase that plays an important role in the erythritol metabolism and is related with the Brucella survival in the intracellular environment of the macrophage. The assay includes an internal amplification control (IAC) in order to avoid false negative results. It was 100% specific, with an analytical sensitivity of 1 genome equivalent (GE) in 43% of the reactions, being the quantification highly linear (R (2) >0.9953) and efficient (PCR efficiency >0.8820) over a 6-log dynamic range, down to 10 GE. Finally, the applicability of this assay was evaluated with artificially contaminated biological matrices implicated in the transmission of this bacterium such as sheep raw milk and pig blood. The eryC-IAC real-time PCR assay allowed detection of as few as ten Brucella cells per 25 ml of sheep raw milk or per 1 ml of pig blood. In conclusion, we present an alternative for the detection of Brucella genus and therefore facilitate the establishment of preventive and prophylactic measures in food and farm environments.