The formalism for rate and state friction is extended to represent fault zones where temperature, porosity, effective normal traction, and strain rate are functions of position (measured across the fault zone). A traditional form for the instantaneous coefficient of friction is retained, where μ0 is the steady state coefficient of friction at shear strain rate , a and b are small constants, is the shear strain rate, ψ is a state variable that represents damage, and ψ0 a normalizing factor. Percolation theory of cracked solids is used to justify a relation between porosity and the state variable of ψ=exp[(ϕ0‐f)/Cϵ], where cϵ is a dimensionless constant, and ϕ0 is the porosity at a reference steady state strain rate ϵ0 and at a reference temperature where Δ≡0 and a reference effective normal traction ΔP0. These relationships and percolation theory imply an evolution law for porosity of the (normalized) form where t is time, ΔP is the effective normal traction, Cη is a material property (related to compaction viscosity) that depends on the temperature difference ΔT from reference condition, 0 indicates reference conditions, and η is a power law rheology exponent. The first term represents creation of porosity by frictional dilatancy while the second term represents closure of porosity by compaction. The effects of transient changes of pressure and temperature on the coefficient of friction are represented when the normalizing factor ψ0 is ΔPnCη(0)/ΔPn0Cη(ΔT). The theory is complete in the sense that the complete earthquake cycle is represented and that there are no unmeasurable state parameters. The theory was applied to investigate earthquake quenching by fluid pressure decreases associated with frictional dilatancy and the related topic of strain localization and delocalization within fault zones. It was found that strain localization will occur when b>a. Such strain localization tends to destabilize sliding within drained faults by reducing the effective value of the critical displacement. Fault zones that are hydraulically sealed from the country rock but internally hydraulically connected are also destabilized because strain localization reduces the fluid pressure decrease from frictional dilatancy. Two mechanisms that delocalize strain once sliding is well underway were investigated. Strain rate strengthening at high‐strain rates leads to a high strain zone that gradually broadens throughout an earthquake. An increase in the coefficient of friction with temperature leads to a high strain rate zone that moves through the fault zone from hot regions created by frictional heating to cold regions.