1: \begin{abstract}
2:
3: We use the UKIDSS Ultra-Deep Survey to trace the evolution of galaxy clustering to $z=3$.
4: Using photometric redshifts derived from data covering
5: the wavelength range $0.3 - 4.5 {\rm \mu m}$ we examine this
6: clustering as a function of absolute K-band luminosity, colour and
7: star-formation rate. Comparing the deprojected clustering
8: amplitudes, we find that red galaxies are more strongly clustered than
9: blue galaxies out to at least $z=1.5$, irrespective of rest-frame K-band luminosity.
10: We then construct passive and star-forming samples based
11: on stellar age, colour and star-formation histories calculated from
12: the best fitting templates. The clustering strength of star-forming
13: galaxies declines steadily from $r_0\simeq7h^{-1}$Mpc at $z\simeq2$ to
14: $r_0\simeq3h^{-1}$Mpc at $z\simeq0$, while passive galaxies have
15: clustering strengths up to a factor of two higher.
16: Within the passive and star-forming subsamples, however, we find very
17: little dependence of galaxy clustering on K-band luminosity. Galaxy
18: `passivity' appears to be the strongest indicator of clustering strength.
19: We compare these clustering measurements
20: with those predicted for dark matter halos and conclude that passive
21: galaxies typically reside in halos of mass $M\ge10^{13}M_{\odot}$ while luminous
22: star-forming galaxies occupy halos an order of magnitude
23: less massive over the range $0.5<z<1.5$. The decline in the clustering strength of
24: star-forming galaxies with decreasing redshift indicates a
25: decline in the hosting halo mass for galaxies of a given luminosity.
26: We find evidence for convergence of clustering in star-forming and
27: passive galaxies around $z\sim2$, which is consistent with this being
28: the epoch at which the red sequence of galaxies becomes distinct.
29: \end{abstract}