In this paper we extend the equilibrium search models of Burdett and Mortensen , Burdett and Vishwanath  and Mortensen and Vishwanath  to allow for endogenous matching and endogenous capital determination. In our model, in order to attract a positive measure of workers, firms must produce a specific hiring effort which is by itself costly (cost of advertising posts, training new employees). Workers then draw firms in proportion to their hiring effort. Moreover, as in the model of Acemoglu and Shimer , upon entering the market firms must choose a determined amount of capital which is then fixed fore ver and indexes labourp roductivityW. e characterize the equilibrium and derive expressions for the endogenous equilibrium wage distributions. In particular, we show that with convex or concave hiring costs, the Nash equilibrium of the equilibrium search game is such that all operating firms must choose a different amount of capital from a continuous distribution, and a one-to-one mapping exists between capital and wages. We calibrate the model on French firmd ata and proceed to various simulations of tax reformsW. e thus show that a reformw hich trans fers labour taxes from low wages to high wages, by reducing the monopsony power of large firms, is welfare improving: unem ployment is reduced, total output is increased as well as government revenue.