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; and 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, wherein 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, 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; and 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, wherein 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, 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. <EOS>