A wireless communication device configured to be capable of operating selectively in any state among a plurality of states including a parent state performing as a parent station of a wireless network and a child state performing as a child station of the wireless network, the wireless communication device comprising: a determination unit configured to determine a state among the plurality of states in which the wireless communication device is to operate; a creating unit configured to create a first password included in a first wireless profile for constructing a first wireless network, in a case where a first wireless network with an SSID including the wireless communication device and a first external device is to be constructed, and it is determined that the wireless communication device is to operate in the parent state; a communication executing unit configured to construct the first wireless network by executing a communication for establishing a wireless connection with the first external device by using the first wireless profile including the first password; and a stopping unit configured to stop the wireless communication device from operating in the parent state so as to cause the first wireless network to disappear in a case where a number of external devices operating in the child state included in the first wireless network becomes zero, to annul the first wireless profile that was being used in the wireless network and to annul the first password that was created; characterised in that: in a case where a second wireless network with said SSID including the wireless communication device and the first external device is to be constructed after the first wireless network has disappeared by the stopping unit, and it is determined that the wireless communication device is to operate in the parent state: the creating unit is further configured to create, in a second wireless profile, a second password different from the first password and to construct the second wireless network; and the communication executing unit is further configured to construct the second wireless network by executing a communication for establishing a wireless connection with the first external device by using the second wireless profile including the second password. a determination unit configured to determine a state among the plurality of states in which the wireless communication device is to operate; a creating unit configured to create a first password included in a first wireless profile for constructing a first wireless network, in a case where a first wireless network with an SSID including the wireless communication device and a first external device is to be constructed, and it is determined that the wireless communication device is to operate in the parent state; a communication executing unit configured to construct the first wireless network by executing a communication for establishing a wireless connection with the first external device by using the first wireless profile including the first password; and a stopping unit configured to stop the wireless communication device from operating in the parent state so as to cause the first wireless network to disappear in a case where a number of external devices operating in the child state included in the first wireless network becomes zero, to annul the first wireless profile that was being used in the wireless network and to annul the first password that was created; characterised in that: in a case where a second wireless network with said SSID including the wireless communication device and the first external device is to be constructed after the first wireless network has disappeared by the stopping unit, and it is determined that the wireless communication device is to operate in the parent state: the creating unit is further configured to create, in a second wireless profile, a second password different from the first password and to construct the second wireless network; and the communication executing unit is further configured to construct the second wireless network by executing a communication for establishing a wireless connection with the first external device by using the second wireless profile including the second password. in a case where a second wireless network with said SSID including the wireless communication device and the first external device is to be constructed after the first wireless network has disappeared by the stopping unit, and it is determined that the wireless communication device is to operate in the parent state: the creating unit is further configured to create, in a second wireless profile, a second password different from the first password and to construct the second wireless network; and the communication executing unit is further configured to construct the second wireless network by executing a communication for establishing a wireless connection with the first external device by using the second wireless profile including the second password. the creating unit is further configured to create, in a second wireless profile, a second password different from the first password and to construct the second wireless network; and the communication executing unit is further configured to construct the second wireless network by executing a communication for establishing a wireless connection with the first external device by using the second wireless profile including the second password.