First construction The area of Galloway known as the
Machars lies south of Newton Stewart between
Luce Bay and
Wigtown Bay. The agricultural land is the most productive in the area and the several ports served coastal and international shipping. Proposals were made in 1863 for a railway to be built in the area, but it was not until 1871 that sufficient interest in a railway scheme was generated. The proposed line was from Newton Stewart on the southwards to Wigtown and nearly to Garliestown, then turning away to Whithorn. The divergence was due to the hostility of the 9th
Earl of Galloway who owned extensive lands in the area. The harbour of Garliestown was to be reached by a short horse-operated tramway branch, running partly along the road. The
Wigtownshire Railway (WR) was authorised by an act of Parliament, the '''''' (
35 & 36 Vict. c. lxxxviii), of 18 July 1872, with capital of £96,000 and the usual one-third borrowing powers, only to be accessible if a certain proportion of shares had been subscribed. The tramway could not be operated by locomotives, nor by stationary engine or as an "
atmospheric railway". The main line was to be just over long. Construction proceeded, although share subscription was not as full as hoped, and the Company started to consider working arrangements. The obvious sponsor was the Caledonian Railway, but the had lost money working the PPR and declined. The WR decided to work the line itself, and were pleasantly surprised to receive a letter dated 7 January 1875 from
Thomas Wheatley, who had (it transpired) recently resigned under a cloud from the
North British Railway, where he had been locomotive superintendent. Wheatley offered to do everything necessary to work and maintain the line for 65% of gross receipts. This seemed too good to be true but, taking Wheatley's misdemeanour into account, everything seemed in order, and Wheatley was given the working contract for five years from 31 July 1875. The section from Newton Stewart to Wigtown was ready for goods operation on 1 March 1875 and locomotive no. 1, a 2-2-2 well tank obtained by Wheatley from the NBR (their no. 32) arrived to take up its duties. Goods traffic started on 3 March 1875 and a passenger service to Wigtown was begun on 7 April 1875 with some four-wheel coaches, thought to be second-hand from the . There were four journeys each way daily. There were no intermediate stations until May when platforms at Causewayend and Mains of Penninghame were ordered to be installed. Wheatley now obtained two more locomotives: no. 3 was an 0-4-2 tender engine,
Addison from the Fleetwood, Preston and West Riding Junction Railway, and
Gardner, an 0-4-0 tender engine converted from an 0-4-2 saddle tank from the same line became no. 4.
Completion of the line So Wigtown and Garliestown had been reached, the latter by an unauthorised railway branch; but Whithorn interests had subscribed money to the railway, and it was still from their town. Energetic canvassing for share subscription proved to be successful, and enough money came in to let a contract to complete the line. Fresh parliamentary authority was obtained in the '''''' (
40 & 41 Vict. c. li) to extend the share capital and to legalise the Garliestown branch. The Whithorn extension was ready for a ceremonial opening on 7 July 1877 and it was opened to the public on 9 July; a fifth engine, another 2-2-2 well tank, was obtained by Wheatley; formerly no. 31A of the , it became no. 5. The Garliestown section was now operated as a shuttle branch line from a new Millisle station, north of the original Garliestown station. In December 1877 a platform was provided at Broughton Skeog level crossing. There were four passenger (or mixed) trains each way daily on the Whithorn main line, and seven shuttle services on the Garliestown branch. As well as passengers, cattle were a dominant traffic from the agricultural activity in the area, and imports from the harbours also. Excursion steamers ran from Garliestown to the
Isle of Man, and excursion trains ran in connection from Stranraer and Dumfries. Wheatley's operating contract expired on 31 July 1880 and in the absence of offers from the and , the WR board negotiated a renewal with Wheatley, on slightly less favourable (to him) terms. Wheatley now brought another engine, no. 6, into the fleet he operated: an 0-6-0 saddle tank
Bradby that he had been using elsewhere on contract work. At about this time, the 2-2-2 no. 1 was rebuilt as a 2-4-0. The 0-4-0 no. 4 seems to have been unsatisfactory and after a period laid up, was converted to an 0-4-2 saddle tank; after the conversion this locomotive proved much more useful. On 13 March 1883 Wheatley died suddenly. His son, W. T. Wheatley had for several years been assisting him on the line, and took over the working contract until the end of the Wigtownshire Railway's independent existence. The Portpatrick and Wigtownshire Joint Railways were vested on 1 August 1885 and the independent existence of the Wigtownshire Railway took effect on 31 December 1885. The Wheatleys had served the little Company well in operating the line with the barest of financial resources. David L. Smith gives two references to the use of tender-cab locomotives on the Whithorn line, at unspecified dates. In
Tales of the Glasgow and South Western Railway (photograph before page 41) he reproduces a photograph of an 0-4-2; the caption reads "No. 17029, at one period no. 114. Fitted with tender cab for working Whithorn branch. In
Legends he refers to "that old Millisle stalwart, No. 17440, with the tender cab". ==Formation of the Portpatrick and Wigtownshire Joint Railways==