p62/SQSTM1/A170 is a multimodular protein that is found in ubiquitin-positive inclusions associated with neurodegenerative diseases. Recent findings indicate that p62 mediates the interaction between ubiquitinated proteins and autophagosomes, leading these proteins to be degraded via the autophagy-lysosomal pathway. This ubiquitin-mediated selective autophagy is thought to begin with recognition of the ubiquitinated proteins by the C-terminal ubiquitin-associated (UBA) domain of p62. We present here the crystal structure of the UBA domain of mouse p62 and the solution structure of its ubiquitin-bound form. The p62 UBA domain adopts a novel dimeric structure in crystals, which is distinctive from those of other UBA domains. NMR analyses reveal that in solution the domain exists in equilibrium between the dimer and monomer forms, and binding ubiquitin shifts the equilibrium toward the monomer to form a 1:1 complex between the UBA domain and ubiquitin. The dimer-to-monomer transition is associated with a structural change of the very C-terminal end of the p62 UBA domain, although the UBA fold itself is essentially maintained. Our data illustrate that dimerization and ubiquitin binding of the p62 UBA domain are incompatible with each other. These observations reveal an autoinhibitory mechanism in the p62 UBA domain and suggest that autoinhibition plays a role in the function of p62.