As others have said, you cannot get married or form a civil partnership under the conditions of a tourist visa.
You could not legally remain after visa expiry and could not secure any visa to remain.
You must return home and file an application for a settlement category visa.