The $2$-category $\textbf{Rel}$ is a closed bicategory, there being, for each $R\colon A\mathrel {\rightarrow \kern -9.5pt\mathrlap {|}\kern 6pt}B$ and set $X$, a pair of adjunctions
witnessed by bijectionsnatural in $S\in \mathrm{Rel}\webleft (B,X\webright )$, $T\in \mathrm{Rel}\webleft (A,X\webright )$, $U\in \mathrm{Rel}\webleft (X,A\webright )$, and $V\in \mathrm{Rel}\webleft (X,B\webright )$.