A road has closed for nearly three weeks while repairs are carried out.