A method of controlling a microgrid (100, 200, 300, 400, 500) comprising the steps of: embedding a first reconfigurable AC interface comprising a first interface to a first load on a first AC bus in the microgrid (100, 200, 300, 400, 500) and a second interface to a first of a plurality of power sources (302a, 302b, 302c, 302d) in the microgrid; embedding a second reconfigurable AC interface comprising a third interface to a second load on a second AC bus in the microgrid (100, 200, 300, 400, 500) and a fourth interface to a second of the plurality of power sources (302a, 302b, 302c, 302d) in the microgrid; characterized by: connecting the first AC bus to the second AC bus by a transmission line such that a phase difference between the first AC bus and the second AC bus results from a non-zero impedance of the transmission line; configuring said first and second reconfigurable AC interfaces to transfer power from respective ones of said power sources (302a, 302b, 302c, 302d) through respective said first and second reconfigurable AC interfaces to said first and second load (512a, 512b); monitoring a voltage and current of at least one of said interfaces of said first and second reconfigurable AC interfaces; monitoring a frequency and a phase of said at least one interface; synchronizing an internal phase locked oscillator of said reconfigurable AC interface to said frequency and said phase; configuring said reconfigurable AC interface as a synchronous voltage source; switching at least one of said first and second reconfigurable AC interfaces to transfer power from a different power source to said first and second load (112, 512a, 512b) based on said monitoring of said voltage and said current; and so providing an uninterruptible supply of power to said first and second load by dynamically reconfiguring said first and second reconfigurable AC interfaces from supplying power to said first and second load (512a, 512b) from a first of said power sources to supplying power from at least a second of said power sources (302a, 302b, 302c, 302d). embedding a first reconfigurable AC interface comprising a first interface to a first load on a first AC bus in the microgrid (100, 200, 300, 400, 500) and a second interface to a first of a plurality of power sources (302a, 302b, 302c, 302d) in the microgrid; embedding a second reconfigurable AC interface comprising a third interface to a second load on a second AC bus in the microgrid (100, 200, 300, 400, 500) and a fourth interface to a second of the plurality of power sources (302a, 302b, 302c, 302d) in the microgrid; characterized by: connecting the first AC bus to the second AC bus by a transmission line such that a phase difference between the first AC bus and the second AC bus results from a non-zero impedance of the transmission line; configuring said first and second reconfigurable AC interfaces to transfer power from respective ones of said power sources (302a, 302b, 302c, 302d) through respective said first and second reconfigurable AC interfaces to said first and second load (512a, 512b); monitoring a voltage and current of at least one of said interfaces of said first and second reconfigurable AC interfaces; monitoring a frequency and a phase of said at least one interface; synchronizing an internal phase locked oscillator of said reconfigurable AC interface to said frequency and said phase; configuring said reconfigurable AC interface as a synchronous voltage source; switching at least one of said first and second reconfigurable AC interfaces to transfer power from a different power source to said first and second load (112, 512a, 512b) based on said monitoring of said voltage and said current; and so providing an uninterruptible supply of power to said first and second load by dynamically reconfiguring said first and second reconfigurable AC interfaces from supplying power to said first and second load (512a, 512b) from a first of said power sources to supplying power from at least a second of said power sources (302a, 302b, 302c, 302d). connecting the first AC bus to the second AC bus by a transmission line such that a phase difference between the first AC bus and the second AC bus results from a non-zero impedance of the transmission line; configuring said first and second reconfigurable AC interfaces to transfer power from respective ones of said power sources (302a, 302b, 302c, 302d) through respective said first and second reconfigurable AC interfaces to said first and second load (512a, 512b); monitoring a voltage and current of at least one of said interfaces of said first and second reconfigurable AC interfaces; monitoring a frequency and a phase of said at least one interface; synchronizing an internal phase locked oscillator of said reconfigurable AC interface to said frequency and said phase; configuring said reconfigurable AC interface as a synchronous voltage source; switching at least one of said first and second reconfigurable AC interfaces to transfer power from a different power source to said first and second load (112, 512a, 512b) based on said monitoring of said voltage and said current; and so providing an uninterruptible supply of power to said first and second load by dynamically reconfiguring said first and second reconfigurable AC interfaces from supplying power to said first and second load (512a, 512b) from a first of said power sources to supplying power from at least a second of said power sources (302a, 302b, 302c, 302d).