In this paper, a new of oxygen fugaeity controltechnique that can be widely applied to in-situ measurement of the grain interior electrical conductivities of minerals and rocks is presented for high temperature and high pressure. Inside the sample assembly, a metal and corresponding metal oxide form a solid oxygen buffer. The principle of this technique is to randomly monitor and adjust oxygen fugacity in the large-volume multi-anvil press by changing the types of solid oxygen buffer, metal shielding case and electrodes. At a pressure of up to 5.0 GPa and a temperature of up to 1423 K, the electrical conductivities of the dry peridotite are tested under the conditions of different oxygen fugacities. By virtue of this new technique, more and more reasonable and accurate laboratory electrical property data will be successfully obtained under controlled thermodynamic conditions.