Progress M-40 docked with the aft port of the Kvant-1 module of Mir on 27 October 1998 at 05:34:41 UTC, and was undocked on 4 February 1999 at 09:59:32 UTC. On 4 February 1999 at 10:24 UTC, following undocking from Mir, an unsuccessful attempt was made to deploy Znamya 2.5, a solar mirror.