Theory [and-と] practice [quotative-とは] necessarily agree not.
必ずしも~ない (not necessarily) is a partial negation pattern. 一致する (to match/agree) is used for abstract alignment. This sentence uses とは instead of は to frame the pairing of theory and practice.