Dorzolamide is a carbonic anhydrase inhibitor that reduces fluid production in the eye, while timolol is a beta-blocker that also decreases fluid production and helps lower pressure inside the eye. Together, they effectively reduce intraocular pressure.