By Banach fixed point theorem, if a metric on a metric space $X$ is such that $d(f(x),f(y))\leq K d(x,y)$ for $K\in (0,1)$ then $f$ has one unique fixed point.
Is there an example where $d(f(x),f(y))\leq K d(x,y)$ does not have a fixed point if $K=1$?
What if $X$ is a compact space?
For $X=\mathbb{R}$, $d$ the usual metric, and $f(x)=x+1$, we have $d(f(x),f(y)) = |(x+1)-(y+1)| = |x-y| = d(x,y)$, so it satisfies the desired inequality with $K=1$, but $f$ clearly has no fixed point.
For a compact example, take $X=S^1$ with the distance inherited by embedding it in $\mathbb{R}^2$ as the unit circle, and $f$ a rotation that is not by an angle that is a multiple of $2\pi$. Again, $d(f(x),f(y))=d(x,y)$ for all $x$ and $y$ , but $f$ has no fixed points.